﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HKEA.CMS.Core.IDAL;
using HKEA.CMS.Core.Models;

namespace HKEA.CMS.Core.DAL
{
    public class CustomerDAL:ICustomer
    {
        public static HKEA_CMSEntities ctx = null;
        #region ICustmer 成员

        public CustomerDAL()
        {
            ctx = new HKEA_CMSEntities();
        }

        public IQueryable<tblCustomer> GetAll()
        {
            var list = ctx.tblCustomers.Where(a => a.CustomerUID > 0);
            return list;
        }

        #endregion
    }
}
